package com.sunday.boot3.user.center.pojo.dto.user;

import com.sunday.common.core.gson.GsonUtils;
import com.sunday.common.core.remoting.base.auth.BaseDTO;
import com.sunday.redisson.annotation.OpenDistributedLock;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * @Description: 用户表 请求 DTO
 * @author: zsy
 * @Create: 2024/09/20 15:13:07
 */
@Data
public class RemoveUserReqDTO extends BaseDTO {

    /**
     * 删除主键
     */
    @NotEmpty
    @Size(min = 1, max = 100)
    @OpenDistributedLock(UserConstants.TABLE_NAME)
    private List<Long> ids;


    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
